<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>


		<title>登录</title>

		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
		<meta http-equiv="description" content="This is my page" />
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>resources/css/login.css" />
		<script type="text/javascript" src="<%=basePath%>scripts/jquery-1.4.2.js">	</script>
		<script type="text/javascript" src="login.js">	</script>

		<script>
<!--
function settab_zzjsnet(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var zzjs=document.getElementById("zzjs_"+name+"_"+i);
  menu.className=i==cursel?"hover":"";
  zzjs.style.display=i==cursel?"block":"none";
 }
}
function checkLogin1() {
     var userName =$("#userName");
  if(userName.val().trim().length==0)
  {
     alert("请输入用户名!");
     userName.focus();
     return;
  }
  var password =$("#password");
   if(password.val().trim().length==0)
  {
     alert("请输入密码!");
     password.focus();
     return;
  }
  var userName = $("#userName").val();
  var password = $("#password").val();
  if($("#chkRememberUsername").attr("checked")){
    setCookie("userName",userName,24,"/");
    setCookie("password",password,24,"/");
    if($("#chkRememberMe").attr("checked")){
    	setCookie("chkRememberMe","true",24,"/");	
    }
  }
    document.forms[0].submit();
}
var ccc = "${login_failure}";
function oninit(){
	if(ccc!=''){
		deleteCookie("userName","/");
		deleteCookie("password","/");
		deleteCookie("chkRememberMe","/");
		$('#userName').focus();
	}
	var userNameValue = getCookieValue("userName");   
    $("#userName").val(userNameValue);
   	var passwordValue = getCookieValue("password");   
    $("#password").val(passwordValue);
    if(getCookieValue("chkRememberMe")=='true'){
	    document.forms[0].submit();
    }
}
</script>

	</head>

	<body>
			<div class="logset">
				<a href="#"></a>
				<a href="#"></a>
			</div>
			<div class="content">
			<a href="<%=basePath%>">
				<img src="<%=basePath%>resources/images/web/findCipher_03.png" width="213"
					height="111" />
			</a>
			</div>


			<div class="fc-wr" align="center">
				<table border="0" cellpadding="1" bordercolor="#111111" width="100%">
	    		<tr><td>
		   			<div style="text-align:center;margin-top: 100px;">注册成功，请登录邮箱激活账号 &nbsp;&nbsp;&nbsp;&nbsp;  <br/><br/>
		   			<span id="dd">10</span> 秒后自动跳转到首页
		   			<a href="javascript:goMainPage();">直接跳过下次再说</a></div>
	    		</td>
	    		</tr>
    		</table>

			</div>

	</body>
</html>
<script language="javascript">
function countDown(secs,surl){     
 var jumpTo = document.getElementById('dd');
 jumpTo.innerHTML=secs;  
 if(--secs>0){     
     setTimeout("countDown("+secs+",'"+surl+"')",1000);     
     }     
 else{
     location.href=surl;
     }
 }
</script>

<script type="text/javascript">
countDown(10,'<%=basePath%>');
function goMainPage(){
	window.location.href='<%=basePath%>';
}
</script>